<%@ Page Language="C#" MasterPageFile="~/Administration/main.master" AutoEventWireup="true"
    CodeFile="CommonSettings.aspx.cs" Inherits="Tathata.Web.Administration.Administration_CommonSettings" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register TagPrefix="nopCommerce" TagName="SimpleTextBox" Src="Modules/SimpleTextBox.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="NumericTextBox" Src="Modules/NumericTextBox.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="EmailTextBox" Src="Modules/EmailTextBox.ascx" %>
<asp:Content ID="c1" ContentPlaceHolderID="cph1" runat="Server">
    <h4>
        Common Settings</h4>
    <div>
        <ajaxToolkit:TabContainer runat="server" ID="CommonSettingsTabs" ActiveTabIndex="0">
            <ajaxToolkit:TabPanel runat="server" ID="pnlStoreInfo" HeaderText="Store Info">
                <ContentTemplate>
                    <table class="adminContent">
                        <tr>
                            <td class="adminTitle">
                                Store name:
                            </td>
                            <td class="adminData">
                                <nopCommerce:SimpleTextBox runat="server" ID="txtStoreName" CssClass="adminInput"
                                    ErrorMessage="Store name is required"></nopCommerce:SimpleTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                Store URL:
                            </td>
                            <td class="adminData">
                                <nopCommerce:SimpleTextBox runat="server" ID="txtStoreURL" CssClass="adminInput"
                                    ErrorMessage="Store URL is required"></nopCommerce:SimpleTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                SSL is installed:
                            </td>
                            <td class="adminData">
                                <asp:CheckBox runat="server" ID="cbSSLIsInstalled"></asp:CheckBox>
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
            <ajaxToolkit:TabPanel runat="server" ID="pnlSEO" HeaderText="SEO">
                <ContentTemplate>
                    <table class="adminContent">
                        <tr>
                            <td class="adminTitle">
                                Default title:
                            </td>
                            <td class="adminData">
                                <nopCommerce:SimpleTextBox runat="server" ID="txtDefaulSEOTitle" CssClass="adminInput">
                                </nopCommerce:SimpleTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                Default meta description:
                            </td>
                            <td class="adminData">
                                <nopCommerce:SimpleTextBox runat="server" ID="txtDefaulSEODescription" CssClass="adminInput">
                                </nopCommerce:SimpleTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                Default meta keywords:
                            </td>
                            <td class="adminData">
                                <nopCommerce:SimpleTextBox runat="server" ID="txtDefaulSEOKeywords" CssClass="adminInput">
                                </nopCommerce:SimpleTextBox>
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
            <ajaxToolkit:TabPanel runat="server" ID="pnlMailSettings" HeaderText="Mail Settings">
                <ContentTemplate>
                    <table class="adminContent">
                        <tr>
                            <td class="adminTitle">
                                Store Admin Email:
                            </td>
                            <td class="adminData">
                                <nopCommerce:EmailTextBox runat="server" CssClass="adminInput" ID="txtStoreAdminEmail">
                                </nopCommerce:EmailTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                Host:
                            </td>
                            <td class="adminData">
                                <asp:TextBox ID="txtStoreAdminHost" CssClass="adminInput" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                Port:
                            </td>
                            <td class="adminData">
                                <asp:TextBox ID="txtStoreAdminPort" CssClass="adminInput" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                User:
                            </td>
                            <td class="adminData">
                                <asp:TextBox ID="txtStoreAdminUser" CssClass="adminInput" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                Password:
                            </td>
                            <td class="adminData">
                                <asp:TextBox ID="txtStoreAdminPassword" CssClass="adminInput" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                Enable SSL:
                            </td>
                            <td class="adminData">
                                <asp:CheckBox ID="cbEnableSsl" runat="server"></asp:CheckBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                Use default credentials:
                            </td>
                            <td class="adminData">
                                <asp:CheckBox ID="cbUseDefaultCredentials" runat="server"></asp:CheckBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <hr />
                                <br />
                                <b>Send Test Email</b>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                Send Email To:
                            </td>
                            <td class="adminData">
                                <nopCommerce:EmailTextBox runat="server" CssClass="adminInput" ID="txtSendEmailTo" ValidationGroup="SendTestEmail">
                                </nopCommerce:EmailTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                Save settings first (by clicking "Save button)
                            </td>
                            <td class="adminData">
                                <asp:Button ID="btnSendTestEmail" runat="server" Text="Send Test Email" CssClass="adminButton"
                                    OnClick="btnSendTestEmail_Click" ValidationGroup="SendTestEmail"></asp:Button>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                            </td>
                            <td class="adminData" style="color: red">
                                <asp:Label ID="lblSendTestEmailResult" runat="server" EnableViewState="false">
                                </asp:Label>
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
            <ajaxToolkit:TabPanel runat="server" ID="pnlMisc" HeaderText="Misc">
                <ContentTemplate>
                    <table class="adminContent">
                        <tr>
                            <td class="adminTitle">
                                Store closed:
                            </td>
                            <td class="adminData">
                                <asp:CheckBox runat="server" ID="cbStoreClosed"></asp:CheckBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                "Compare products" enabled:
                            </td>
                            <td class="adminData">
                                <asp:CheckBox runat="server" ID="cbEnableCompareProducts"></asp:CheckBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                "Email a friend" enabled:
                            </td>
                            <td class="adminData">
                                <asp:CheckBox runat="server" ID="cbEnableEmailAFriend"></asp:CheckBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                Base weight in:
                            </td>
                            <td class="adminData">
                                <asp:DropDownList ID="ddlBaseWeight" AutoPostBack="False" CssClass="adminInput" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                Base dimension in:
                            </td>
                            <td class="adminData">
                                <asp:DropDownList ID="ddlBaseDimension" AutoPostBack="False" CssClass="adminInput"
                                    runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
        </ajaxToolkit:TabContainer>
    </div>
    <table class="adminContent">
        <tr>
            <td colspan="2">
                <asp:Button runat="server" Text="Save" CssClass="adminButton" ID="btnSave" OnClick="btnSave_Click">
                </asp:Button>
            </td>
        </tr>
    </table>
</asp:Content>
